﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace WindowsFormsApplication1
{
    class MonitorProcess : IMonitor
    {
        public override string ToString()
        {
            Process[] processlist = Process.GetProcesses();

            string processListString = "Process list:\r\n";
            foreach (Process theprocess in processlist)
            {

                processListString += theprocess.ProcessName + "\r\n";
            }
            return processListString;
        }
        public string ToString2()
        {
            Process[] processlist = Process.GetProcesses();

            string processListString = "";
            foreach (Process theprocess in processlist)
            {
                processListString += theprocess.ProcessName + " ";
            }
            return processListString;
        }

        public string DisposeHook()
        {
            throw new NotImplementedException();
        }
    }
}
